<?php
include_once '../tools/DbTools.php';
session_start();
$newMoney = $_POST['newmoney'];
print_r($_POST['newmoney']);
DbTools::init();
$token = $_COOKIE['Token'];
$Sql = "update bankcard set CardMoney=CardMoney+" . $newMoney . " " . "where CardId=" . $_SESSION[$token]['CardId'];
$result = DbTools::noSelect($Sql);
print_r($result['status']);
if ($result['status']) {
  echo '成功，<a href="moneyIn.php">返回</a>';
  die;
} else {
  echo '失败，<a href="moneyIn.php">返回</a>';
}
